<!DOCTYPE html>
<html>
<head>
    <title>会员实名管理</title>
	<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <div class="form-group col-sm-2">
                <input type="text" class="form-control" v-model="q.name" @keyup.enter="query" placeholder="请输入昵称或手机账号">
            </div>
            <select id="combo" class="combobox form-control col-sm-2" style="width: 10%"  v-model="q.authStatus" @keyup.enter="query">
                <option value="" selected="selected">--全部--</option>
                <option value="1">已申请</option>
                <option value="2">未通过</option>
            </select>
            <a class="btn btn-default" @click="query">查询</a>
			<#if shiro.hasPermission("sys:userauth:info")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;审核</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
            <div class="form-group">
                <div class="col-sm-2 control-label">账号</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="dict.mobile" disabled placeholder="账号"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">昵称</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="dict.nick" disabled placeholder="昵称"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">认证状态</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="dict.authStatusDesc" disabled placeholder="认证状态"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">姓名</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="dict.realName" disabled placeholder="姓名"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">身份证号</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="dict.idNo" disabled placeholder="身份证号"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">身份证正面</div>
                <div class="col-sm-10">
                    <img @click="showImg(dict.idUrl,'身份证正面')" :src="dict.idUrl" alt="身份证正面"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">身份证反面</div>
                <div class="col-sm-10">
                    <div class="col-sm-10">
                        <img @click="showImg(dict.idBackUrl,'身份证反面')" :src="dict.idBackUrl" alt="身份证反面"/>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">审核是否通过</div>
                <label class="radio-inline">
                    <input type="radio" name="type" value="2" v-model="auth.authStatus"/> 不予通过
                </label>
                <label class="radio-inline">
                    <input type="radio" name="type" value="3" v-model="auth.authStatus"/> 通过
                </label>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
            &nbsp;&nbsp;  <input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>
<div id="Img" style="display: none;padding-left: 10px;padding-top: 10px;">
    <div style="width:100%;height:100%;display: flex;justify-content: center;align-items:center;">
        <img id="showImg" alt="" src="" style="max-width:100%;height:auto;object-fit:cover; ">
    </div>
</div>
<script src="${request.contextPath}/statics/js/modules/biz/user1.js?_${.now?long}"></script>
</body>
</html>